package cn.com.api.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_message;
import cn.com.api.service.base.U_messageServiceBase;
import cn.com.util.PageInfo;

/**
 * 
 */
@Service
public interface ApiU_messageService extends U_messageServiceBase {

	// 新增对象后返回记录ID
	public int U_messageInsertion(ApiU_message u_message);

	// 添加消息
	public void addmessage(String touserids, String title, String content, String conn_id, String image, String type)
			throws Exception;

	public List<ApiU_message> findU_messagesByMap(Map param, PageInfo page);

	// 批量加入数据
	public void insertmessageList(List<ApiU_message> messagelist);

	public List<ApiU_message> findU_messages(String user_id, String type, PageInfo page);

	// 阅读消息
	public ApiU_message readMessage(String messageid);

	public ApiU_message findMessagesByMap(Map<String, Object> map);

	// 获取系统消息
	public List<ApiU_message> getSysMessageList();
	
	//
	public int deleteU_message(Integer id);
}
